09. Using Selectors

Using Selectors

Classes are easily the most useful and versatile type of selectors that you can use. For this exercise, consider the given CSS statement, which uses a class selector for the class right and changes the value of the text-align property to right:

.right {
  text-align: right;
}

Which of the following HTML elements match the above CSS statement? Please select all that apply:

SOLUTION:
  • `
    `
  • `

    `

Solution

Using Selectors Quiz